package com.zhouhx.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhouhx.demo.service.ConsumerService;

@RestController
public class Publish {
	@Autowired
	ConsumerService consumerService;

	@GetMapping("/demo")
	public String getUserInfo() {
		return consumerService.getUserInfo();
	}
}